package cn.turboinfo.dongying.api.gateway.admin.fo.permission;

import lombok.Data;
import net.sunshow.toolkit.core.base.enums.YesNoStatus;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class PermissionUpdateFO {
    @NotNull(message = "ID不能为空")
    private Long id;

    @NotBlank(message = "权限名称不能为空")
    private String name;

    private String description;

    @NotBlank(message = "资源编码不能为空")
    private String resource;

    private String url;

    private String icon;

    private String component;

    @NotNull(message = "可见状态不能为空")
    private YesNoStatus visibleStatus;

    private Integer sortValue;
}
